// 浏览器嗅探
if(!window.setImmediate){
    window.setImmediate = function(func,args){
        return window.setTimeout(func,0,args)
    }
    window.clearImmedate=window.clearTimeout;
}